DECLARE @no AS BIGINT;
SELECT @no = max(appitemid) + 1 FROM ApplicationItem;
INSERT INTO ApplicationItem SELECT @no,'ms_branch_change','Branch Change',1,5,''
INSERT INTO LevelApplicationItem(roleid, appitemid, accesscodes) values (1, @no, '');

SELECT @no = max(appitemid) + 1 FROM ApplicationItem;
INSERT INTO ApplicationItem SELECT @no,'ms_bc_list','Branch Change List',1,6,''
INSERT INTO LevelApplicationItem(roleid, appitemid, accesscodes) values (1, @no, '');